<?
	include('news.php');	
?>
<style type="text/css">
.a-main-content-wrapper_main-page-caselist *{
	letter-spacing:0.10em !important;
}
.a-main-content-wrapper_main-page-caselist .a-cell_1 .case-ul {
	margin-top:5px;
	margin-bottom:30px;
	margin-right:15px;
	float:right;
	width:730px;
}
.a-main-content-wrapper_main-page-caselist .a-cell_1 .case-ul li {
	/*margin:0.5em 0px 0.5em;*/
	margin:0px;
	padding:0px;
}
.a-main-content-wrapper_main-page-caselist .a-cell h1 {
	margin-top:3px;
	color:#fff;
	cursor:default;
	float:left;
	display:inline-block;
	font-size:14px;
}
.a-main-content-wrapper_main-page-caselist .a-cell h2 {
	/*margin-top:2px;*/
	cursor:default;
	float:right;
	text-align:right;
	display:inline-block;
	color:#fff;
	padding-right:1em;
}
.a-main-content-wrapper_main-page-caselist .a-cell_1 p {
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:14px;
	cursor:default;
	clear:left;
}
.a-main-content-wrapper_main-page-caselist .a-cell_1 .cap {
	height:29px;
	padding-left:24px;
	/*background:url() repeat-x #4877DC ;*/
	background:url(images/bar-left.png) no-repeat 0px 0px;
	background-color:transparent;
}
.a-main-content-wrapper_main-page-caselist .a-cell_1 .cap .right {
	margin:0px;
	padding:0px;
	width:100%;
	background:url(images/bar-right.png) 0px 0px repeat-x;
	background-position:right 0px;
	background-color:transparent;
	height:29px;
	overflow:hidden;
}
.a-main-content-wrapper_main-page-caselist .a-cell_1 .cap i {
	display:inline-block;
	font-style:normal;
	margin-left:-16px;
	padding-left:16px;
	height:29px;
	float:left;
	background-color: transparent;
	overflow:hidden;
	background:url(images/icons.png) no-repeat 0px 0px;
}
.a-main-content-wrapper_main-page-caselist .a-cell_1 .cap i.active {
	background-position:0px -58px
}
.a-main-content-wrapper_main-page-caselist .a-cell_1 .cap:hover {
	background-position:0px -29px
}
.a-main-content-wrapper_main-page-caselist .a-cell_1 .cap:hover .right {
	background-position:right -29px
}
.a-main-content-wrapper_main-page-caselist .a-cell_1 .text {
	border-width:0px 1px 1px 1px;
	border-color:#ccc;
	border-style:dotted;
	background-color:#fefeff;
	height:auto;
	margin:-3px 12px 15px 12px;
	padding:0px 1.5em 1.5em;
	display:none;
}
.a-main-content-wrapper_main-page-caselist .menu {
	float:left;
	background-color:#fff;
	width:185px;
	height:350px;
}
.a-main-content-wrapper_main-page-caselist .menu ul {
	width:184px;
	border-right:1px solid #CCC;
	margin:0px;
	list-style:none;
	padding:15px 0px;
}
.a-main-content-wrapper_main-page-caselist .menu ul li {
	margin:0px;
	width:179px;
	margin-right:-1px;
	padding:0px;
	border: solid;
	border-width:0px 1px 0px 5px;
	border-color:transparent;
}
.a-main-content-wrapper_main-page-caselist .menu ul li a {
	display:block;
	text-align:center;
}
.a-main-content-wrapper_main-page-caselist .menu ul li:hover {
	border-color:#ff6600;
	background-color:#fff0e6;
}
.a-main-content-wrapper_main-page-caselist .menu ul li:hover a {
	text-decoration:underline;
}
</style>

</style>
<div class="a-main-content-wrapper_main-page-caselist .a-main-content-wrapper_no-menu-caselist ">
  <div class="a-content-tabs-ct">
<div class="a-cell a-cell_1">
    <div class="menu"> 
    <ul>
    <li><a href="?hd=news" >显示全部</a></li>
    </ul>
    </div>
    <ul class="case-ul">
      <?
				
				foreach ($news as $value){
					/*if ($_GET['y']){if ($value['t']!=$_GET['y']) continue;}*/
					echo ('<li><div class="cap" id="'.$value['d'].'-'. $value['n'] .'" ><i></i><div class="right">');
					echo ('<h1>' . $value['t'] . '</h1>');
					/*if ($value['ft']!=$value['lt']){
						echo ('<h2>' . $value['p'] . '[' . $value['ft'] . '&mdash;' . $value['lt'] . ']' . '</h2>');
					}else{
						echo ('<h2>' . $value['p'] . '[' . $value['lt'] . ']' . '</h2>');
					}*/
					echo ('</div></div>');
					echo ('<div class="text"><p>' . $value['m'] . '</p></div></li>');
					}
				
			?>
    </ul>
  </div></div>
<div class="a-content-tabs-ct-bottom"></div>

</div>
<script type="text/javascript">
$(document).ready(function(){
	$(".cap").click(function(){
		$(this).siblings(".text").toggle();
		if ($(this).children("i").hasClass("active")){	 $(this).children("i").removeClass("active") }
		else $(this).children("i").addClass("active") ;
	});
		<? 
			if ($_GET['s']) {
				echo ('$("#' . $_GET['s'] . '").siblings(".text").toggle();');
				echo ('if ($("#'. $_GET['s'] . '").children("i").hasClass("active")){	 $("#' . $_GET['s'] .'").children("i").removeClass("active") }');
				echo ('else $("#' .  $_GET['s'] . '").children("i").addClass("active") ;');
			}
		 ?>
});
	
</script>